﻿<Page x:Class="eztvReader.Contents"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="800" d:DesignWidth="616"
	Title="Contents" Loaded="Page_Loaded">
    <Page.Resources>
        <DataTemplate x:Key="PicCell">
            <StackPanel Orientation="Horizontal">
                <TextBlock>                    
                        <Image Height="50" Stretch="Fill" Source="magnet.png" ToolTip="{Binding Link}" MouseDown="Image_MouseDown" />                    
                </TextBlock>
            </StackPanel>
        </DataTemplate>
    </Page.Resources>
    <Grid>
        <ListView Name="listView1">
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="140" Header="Date" DisplayMemberBinding="{Binding Date, StringFormat='{}{0:dd.MM.yyyy HH:mm:ss}'}" />
                    <GridViewColumn Width="350" Header="Title" DisplayMemberBinding="{Binding Title}" />
                    <GridViewColumn Width="70" Header="Link" CellTemplate="{StaticResource PicCell}" />
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</Page>
